<h1>Project List</h1>

<table>
  <thead>
    <tr>
      <th>Name</th>
      <th>Summary</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($project_list as $project): ?>
    <tr>
      <td><?php echo str_repeat('&nbsp;&nbsp;', $project['level']).($project['level'] == 0 ? '' : '|-') ?><a href="<?php echo url_for('project/show?id='.$project['id']) ?>"><?php echo $project->getname() ?></a></td>
      <td><?php echo $project->getsummary() ?></td>
      <td><?php echo $project->getdescription() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('project/new') ?>">New</a>
